<html><head><meta charset="UTF-8" /><script>var $gwt_version = "2.3.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = 'AB592A448BAF93257078D543028BE115';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'boarddemo',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!--
function p(){}
function o(){}
function n(){}
function m(){}
function l(){}
function I(){}
function J(){}
function H(){}
function Q(){}
function P(){}
function O(){}
function N(){}
function U(){}
function Ii(){}
function fb(){}
function ab(){}
function yb(){}
function xb(){}
function wb(){}
function vb(){}
function ub(){}
function Gb(){}
function tb(){}
function Kb(){}
function Jb(){}
function Ib(){}
function Pb(){}
function Tb(){}
function Rb(){}
function Xb(){}
function _b(){}
function $b(){}
function ac(){}
function kc(){}
function jc(){}
function mc(){}
function lc(){}
function sc(){}
function rc(){}
function Bc(){}
function Ac(){}
function rd(){}
function xd(){}
function Md(){}
function Ld(){}
function Kd(){}
function Wd(){}
function be(){}
function ae(){}
function ee(){}
function de(){}
function he(){}
function ge(){}
function je(){}
function le(){}
function se(){}
function te(){}
function xe(){}
function ze(){}
function Ee(){}
function De(){}
function He(){}
function Re(){}
function Qe(){}
function Ue(){}
function Te(){}
function Ve(){}
function Xe(){}
function _e(){}
function hf(){}
function of(){}
function nf(){}
function pf(){}
function rf(){}
function uf(){}
function xf(){}
function Af(){}
function Gf(){}
function Kf(){}
function Jf(){}
function Lf(){}
function Xf(){}
function Zf(){}
function _f(){}
function ag(){}
function bg(){}
function dg(){}
function fg(){}
function ig(){}
function lg(){}
function zg(){}
function Bg(){}
function Hg(){}
function Gg(){}
function _g(){}
function ah(){}
function ih(){}
function nh(){}
function mh(){}
function uh(){}
function zh(){}
function Jh(){}
function Ph(){}
function Sh(){}
function Xh(){}
function _h(){}
function mi(){}
function li(){}
function qi(){}
function ti(){}
function Ai(){}
function Fi(){}
function mg(a){}
function eg(a){kb()}
function hg(a){kb()}
function kg(a){kb()}
function Ag(a){kb()}
function cg(){kb()}
function gg(){kb()}
function jg(){kb()}
function S(){kb()}
function $f(){kb()}
function Gi(){kb()}
function ud(){td()}
function si(){Ng(this)}
function F(a){this.o=a}
function Ff(a){this.b=a}
function vf(a){this.b=a}
function yf(a){this.b=a}
function ye(a){this.b=a}
function ue(a){this.b=a}
function eh(a){this.b=a}
function qh(a){this.b=a}
function Yh(a){this.b=a}
function Mh(a){this.d=a}
function kf(a){this.c=a}
function Qb(){this.b={}}
function Nb(){this.d=++Lb}
function zc(a,b){this.b=b}
function vi(){this.b=new si}
function ki(){ki=Ii;ji=new mi}
function cb(){cb=Ii;bb=new fb}
function td(){td=Ii;sd=new Nb}
function vg(){vg=Ii;sg={};ug={}}
function oc(a){nc.call(this,a)}
function $d(a){nc.call(this,a)}
function Td(a,b){Pd(a,b,a.o)}
function af(a,b){cf(a,b,a.c)}
function t(a,b){!!a.k&&Yb(a.k,b)}
function Yf(a,b){this.b=a;this.c=b}
function Th(a,b){this.b=a;this.c=b}
function Bi(a,b){this.b=a;this.c=b}
function vh(a,b){this.c=a;this.b=b}
function Zb(a){this.b=new ic;this.c=a}
function yd(){this.b=new ic;this.c=null}
function Zd(){Zd=Ii;Xd=new be;Yd=new ee}
function Fb(){Fb=Ii;Eb=new Ob(new Gb)}
function T(a){kb();this.b=a;jb(this)}
function Kh(a){return a.c<a.d.F()}
function Nc(a,b){return a.cM&&a.cM[b]}
function Sg(b,a){return Aj+a in b.f}
function X(a,b,c){return a.apply(b,c);var d}
function dc(a,b,c){var d;d=fc(a,b);d.D(c)}
function Ch(a,b){(a<0||a>=b)&&Fh(a,b)}
function od(){if(!kd){Jd();kd=true}}
function Bd(){if(!zd){Id();zd=true}}
function We(){Me.call(this,$doc.body)}
function ic(){this.e=new si;this.d=false}
function Me(a){this.g=new ff;this.o=a;u(this)}
function qf(a,b,c){this.b=a;this.d=b;this.c=c}
function ff(){this.b=Ec(Wc,{20:1},9,4,0)}
function ci(){this.b=Ec($c,{20:1},0,0,0)}
function pd(){kd&&Vb((!ld&&(ld=new yd),ld))}
function Vb(a){var b;if(Sb){b=new Tb;Yb(a,b)}}
function bc(a,b){!a.b&&(a.b=new ci);ai(a.b,b)}
function ai(a,b){Hc(a.b,a.c++,b);return true}
function lb(){try{null.a()}catch(a){return a}}
function gb(a,b){!a&&(a=[]);a[a.length]=b;return a}
function ib(a,b){a.length>=b&&a.splice(0,b);return a}
function ui(a,b){var c;c=Tg(a.b,b,a);return c==null}
function Ig(a){var b;b=new eh(a);return new Th(a,b)}
function md(a){od();return nd(Sb?Sb:(Sb=new Nb),a)}
function Qc(a,b){return a!=null&&a.cM&&!!a.cM[b]}
function Cd(a){return !Rc(a)&&a!=null&&a.cM&&!!a.cM[8]}
function Ng(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0}
function ne(a){this.b=a;this.c=pc(a);this.d=this.c}
function If(a,b){this.c=a;this.d=b;this.b='grassland'}
function Fh(a,b){throw new hg('Index: '+a+', Size: '+b)}
function Le(){Le=Ii;Ie=new Re;Je=new si;Ke=new vi}
function Kc(){Kc=Ii;Ic=[];Jc=[];Lc(new Bc,Ic,Jc)}
function yg(){if(tg==256){sg=ug;ug={};tg=0}++tg}
function Sc(a){if(a!=null){throw new cg}return null}
function Qh(a){if(a.c<=0){throw new Gi}return a.b.M(--a.c)}
function jf(a){if(a.b>=a.c.c){throw new Gi}return a.c.b[++a.b]}
function Lh(a){if(a.c>=a.d.F()){throw new Gi}return a.d.M(a.c++)}
function ef(a,b){var c;c=bf(a,b);if(c==-1){throw new Gi}df(a,c)}
function Pd(a,b,c){w(b);af(a.g,b);c.appendChild(b.o);x(b,a)}
function Gc(a,b,c,d){Kc();Mc(d,Ic,Jc);d.aC=a;d.cM=b;d.qI=c;return d}
function Vg(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c}
function Cc(a,b){var c,d;c=a;d=Dc(0,b);Gc(c.aC,c.cM,c.qI,d);return d}
function Oc(a,b){if(a!=null&&!(a.cM&&a.cM[b])){throw new cg}return a}
function dd(a){if(a!=null&&a.cM&&!!a.cM[7]){return a}return new T(a)}
function Y(){if(V++==0){db((cb(),bb));return true}return false}
function Ne(a){Le();try{v(a)}finally{Xg(Ke.b,a)!=null}}
function Oe(){Le();try{_d(Ke,Ie)}finally{Ng(Ke.b);Ng(Je)}}
function Rc(a){return a!=null&&a.tM!=Ii&&!(a.cM&&!!a.cM[1])}
function Xg(a,b){return !b?Zg(a):Yg(a,b,~~(b.$H||(b.$H=++W)))}
function nd(a,b){return new kc(cc((!ld&&(ld=new yd),ld).b,a,b))}
function y(a,b){a.j==-1?id(a.o,b|(a.o.__eventBits||0)):(a.j|=b)}
function me(a,b){a.b.textContent=b||Ki;if(a.d!=a.c){a.d=a.c;qc(a.b,a.c)}}
function Zg(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b}
function bf(a,b){var c;for(c=0;c<a.c;++c){if(a.b[c]==b){return c}}return -1}
function bi(a,b,c){for(;c<a.c;++c){if(Hi(b,a.b[c])){return c}}return -1}
function Wg(e,a,b){var c,d=e.f;a=Aj+a;a in d?(c=d[a]):++e.e;d[a]=b;return c}
function Lc(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}}
function Mc(a,b,c){Kc();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}}
function Rf(a,b,c){if(b>=0&&c>=0&&b<a.c&&c<a.b){return a.p[b][c]}return null}
function qd(){var a;if(kd){a=new ud;!!ld&&Yb(ld,a);return null}return null}
function ob(a){var b=a.parentNode;(!b||b.nodeType!=1)&&(b=null);return b}
function Pc(a){if(a!=null&&(a.tM==Ii||a.cM&&!!a.cM[1])){throw new cg}return a}
function L(a){var b;return b=a,b.tM==Ii||b.cM&&!!b.cM[1]?b.hC():b.$H||(b.$H=++W)}
function K(a,b){var c;return c=a,c.tM==Ii||c.cM&&!!c.cM[1]?c.eQ(b):c===b}
function Rh(a,b){var c;this.b=a;this.d=a;c=a.F();(b<0||b>c)&&Fh(b,c);this.c=b}
function Ob(a){this.d=++Lb;this.b=a;!zb&&(zb=new Qb);zb.b[Oi]=this;this.c=Oi}
function tf(){this.g=new Ze;this.b=new Be;this.f=new ie;this.i=new Fe}
function we(){we=Ii;new ye('bottom');new ye('middle');ve=new ye(kj)}
function Ud(a){a.style[jj]=Ki;a.style[kj]=Ki;a.style['position']=Ki}
function ri(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)}
function Hi(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)}
function db(a){var b,c;if(a.b){c=null;do{b=a.b;a.b=null;c=hb(b,c)}while(a.b);a.b=c}}
function eb(a){var b,c;if(a.c){c=null;do{b=a.c;a.c=null;c=hb(b,c)}while(a.c);a.c=c}}
function Hf(a){var b;if(a.c==1&&a.d==1){b=new ci;ai(b,new Kf);return b}return null}
function jh(a){var b;b=new ci;a.d&&ai(b,new qh(a));Mg(a,b);Lg(a,b);this.b=new Mh(b)}
function $(a,b,c){var d;d=Y();try{return X(a,b,c)}finally{d&&eb((cb(),bb));--V}}
function Z(b){return function(){try{return $(b,this,arguments)}catch(a){throw a}}}
function sb(a){return (ng(a.compatMode,Ni)?a.documentElement:a.body).scrollTop||0}
function rb(a){return (ng(a.compatMode,Ni)?a.documentElement:a.body).scrollLeft||0}
function Og(a,b){return b==null?a.d:b!=null&&b.cM&&!!b.cM[1]?Sg(a,Oc(b,1)):Rg(a,b,~~L(b))}
function Pg(a,b){return b==null?a.c:b!=null&&b.cM&&!!b.cM[1]?a.f[Aj+Oc(b,1)]:Qg(a,b,~~L(b))}
function ng(a,b){if(!(b!=null&&b.cM&&!!b.cM[1])){return false}return String(a)==b}
function og(b,a){if(a==null)return false;return b==a||b.toLowerCase()==a.toLowerCase()}
function s(a,b,c){y(a,Ad(c.c));return new kc(cc((!a.k?(a.k=new Zb(a)):a.k).b,c,b))}
function hd(a,b,c){var d;d=fd;fd=a;b==gd&&Ad(a.type)==8192&&(gd=null);c.u(a);fd=d}
function Ec(a,b,c,d,e){var f;f=Dc(e,d);Kc();Mc(f,Ic,Jc);f.aC=a;f.cM=b;f.qI=c;return f}
function Sf(a,b){var c;c=new Yf(a.d+(b.d+b.c)*~~(a.o/2),a.e+(b.d-b.c)*~~(a.n/2));return c}
function Cg(a,b){var c;while(a.B()){c=a.C();if(b==null?c==null:K(b,c)){return a}}return null}
function Tf(a,b,c){var d;for(d=0;d<a.q.length;++d){if(Vf(a,a.q[d],b,c)){return a.q[d]}}return null}
function mb(a){var b,c,d;d=nb(a);for(b=0,c=d.length;b<c;++b){d[b]=d[b].length==0?'anonymous':d[b]}return d}
function Ze(){ke.call(this);this.b=(re(),oe);this.c=(we(),ve);this.f[qj]=rj;this.f[sj]=rj}
function Fe(){this.o=$doc.createElement('div');this.b=new ne(this.o);this.o[lj]='gwt-Label'}
function re(){re=Ii;new ue('center');new ue('justify');pe=new ue(jj);new ue('right');qe=pe;oe=qe}
function yc(){yc=Ii;xc=new zc('RTL',0);wc=new zc('LTR',1);vc=new zc('DEFAULT',2);Gc(Vc,{20:1},23,[xc,wc,vc])}
function nc(a){S.call(this,a.F()==0?null:Oc(a.G(Ec(ad,{16:1,20:1},7,0,0)),16)[0]);this.b=a}
function Tg(a,b,c){return b==null?Vg(a,c):b!=null&&b.cM&&!!b.cM[1]?Wg(a,Oc(b,1),c):Ug(a,b,c,~~L(b))}
function df(a,b){var c;if(b<0||b>=a.c){throw new gg}--a.c;for(c=b;c<a.c;++c){Hc(a.b,c,a.b[c+1])}Hc(a.b,a.c,null)}
function hc(a){var b,c;if(a.b){try{for(c=new Mh(a.b);c.c<c.d.F();){b=Oc(Lh(c),15);dc(b.b,b.d,b.c)}}finally{a.b=null}}}
function Mg(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=new vh(e,c.substring(1));a.D(d)}}}
function xg(a){vg();var b=Aj+a;var c=ug[b];if(c!=null){return c}c=sg[b];c==null&&(c=wg(a));yg();return ug[b]=c}
function Qd(a,b){var c;if(b.n!=a){return false}try{x(b,null)}finally{c=b.o;ob(c).removeChild(c);ef(a.g,b)}return true}
function gc(a,b){var c,d;d=Oc(Pg(a.e,b),13);if(!d){return ki(),ki(),ji}c=Oc(d.c,14);if(!c){return ki(),ki(),ji}return c}
function fc(a,b){var c,d;d=Oc(Pg(a.e,b),13);if(!d){d=new si;Tg(a.e,b,d)}c=Oc(d.c,14);if(!c){c=new ci;Vg(d,c)}return c}
function R(a){var b,c,d;c=Ec(_c,{20:1},30,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw new jg}c[d]=a[d]}}
function kb(){var a,b,c,d;c=ib(mb(lb()),3);d=Ec(_c,{20:1},30,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=new mg(c[a])}R(d)}
function Lg(h,a){var b=h.b;for(var c in b){var d=parseInt(c,10);if(c==d){var e=b[d];for(var f=0,g=e.length;f<g;++f){a.D(e[f])}}}}
function Ab(a,b,c){var d,e,f;if(zb){f=Oc(zb.b[a.type],4);if(f){d=f.b.b;e=f.b.c;f.b.b=a;f.b.c=c;t(b,f.b);f.b.b=d;f.b.c=e}}}
function Wf(a,b,c){this.f=b;this.k=c;this.b=8;this.c=8;this.n=64;this.o=128;this.q=a;this.g=true;this.i=true;this.j=false}
function Ge(){Fe.call(this);me(this.b,"Sorry, your browser doesn't support the HTML5 Canvas element")}
function gwtOnLoad(b,c,d,e){$moduleName=c;$moduleBase=d;if(b)try{Ji(cd)()}catch(a){b(c)}else{Ji(cd)()}}
function G(){var a;!E&&(E=new J);a=$doc.createElement('canvas');if(!a.getContext){return null}return new F(a)}
function ie(){var a;this.o=(a=$doc.createElement('BUTTON'),a.type='button',a);this.o[lj]='gwt-Button';this.o.innerHTML='Draw Board'}
function Ef(a){var b;b=a.b.createElement(vj);b.src=a.b.URL.substr(0,a.b.URL.indexOf(wj)-0)+'images/unit.png';return b}
function Db(a){var b,c;b=a.c;if(b){return c=a.b,(c.clientY||0)-qb(b)+(b.scrollTop||0)+sb(b.ownerDocument)}return a.b.clientY||0}
function Cb(a){var b,c;b=a.c;if(b){return c=a.b,(c.clientX||0)-pb(b)+(b.scrollLeft||0)+rb(b.ownerDocument)}return a.b.clientX||0}
function Qg(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.I();if(h.H(a,g)){return f.J()}}}return null}
function Rg(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.I();if(h.H(a,g)){return true}}}return false}
function dh(a,b){var c,d,e;if(b!=null&&b.cM&&!!b.cM[31]){c=Oc(b,31);d=c.I();if(Og(a.b,d)){e=Pg(a.b,d);return ri(c.J(),e)}}return false}
function pc(a){var b;b=a[Pi]==null?null:String(a[Pi]);if(og(Qi,b)){return yc(),xc}else if(og(Ri,b)){return yc(),wc}return yc(),vc}
function qc(a,b){switch(b.b){case 0:{a[Pi]=Qi;break}case 1:{a[Pi]=Ri;break}case 2:{pc(a)!=(yc(),vc)&&(a[Pi]=Ki,undefined);break}}}
function pg(c){if(c.length==0||c[0]>zj&&c[c.length-1]>zj){return c}var a=c.replace(/^(\s*)/,Ki);var b=a.replace(/\s*$/,Ki);return b}
function jb(a){var b,c,d,e;d=mb(Rc(a.b)?Pc(a.b):null);e=Ec(_c,{20:1},30,d.length,0);for(b=0,c=e.length;b<c;++b){e[b]=new mg(d[b])}R(e)}
function Hc(a,b,c){if(c!=null){if(a.qI>0&&!Nc(c,a.qI)){throw new $f}if(a.qI<0&&(c.tM==Ii||c.cM&&!!c.cM[1])){throw new $f}}return a[b]=c}
function ke(){this.g=new ff;this.f=$doc.createElement('table');this.e=$doc.createElement('tbody');this.f.appendChild(this.e);this.o=this.f}
function Be(){ke.call(this);this.b=(re(),oe);this.d=(we(),ve);this.c=$doc.createElement(pj);this.e.appendChild(this.c);this.f[qj]=rj;this.f[sj]=rj}
function Ae(a,b){var c,d;c=(d=$doc.createElement(mj),d[nj]=a.b.b,d.style[oj]=a.d.b,d);a.c.appendChild(c);w(b);af(a.g,b);c.appendChild(b.o);x(b,a)}
function w(a){if(!a.n){(Le(),Og(Ke.b,a))&&Ne(a)}else if(a.n){a.n.z(a)}else if(a.n){throw new eg("This widget's parent does not implement HasWidgets")}}
function Df(a,b){var c,d;d=a.b.createElement(vj);~~(b.c/(b.d+1))%2==0?(c='1'):(c=rj);d.src=a.b.URL.substr(0,a.b.URL.indexOf(wj)-0)+xj+b.b+'/center'+c+yj;return d}
function v(a){if(!a.i){throw new eg("Should only call onDetach when the widget is attached to the browser's document")}try{a.s()}finally{a.o.__listener=null;a.i=false}}
function Pf(a,b){var c,d,e;c=Sf(a,b);if(Hf(b)){for(e=new Mh(Hf(b));e.c<e.d.F();){Oc(Lh(e),22);d=Ef(a.k);a.f.drawImage(d,c.b-~~(d.width/2),c.c-d.height,d.width,d.height)}}}
function Uf(a,b,c,d){var e,f,g,h;h=a.length;e=false;for(f=0,g=h-1;f<h;g=f++){(b[f]<=d&&d<b[g]||b[g]<=d&&d<b[f])&&c<~~((a[g]-a[f])*(d-b[f])/(b[g]-b[f]))+a[f]&&(e=!e)}return e}
function Fc(a,b,c,d,e,f,g){var h,i,j,k;j=d[e];i=e==f-1;k=Dc(i?g:0,j);Kc();Mc(k,Ic,Jc);k.aC=a[e];k.cM=b[e];k.qI=c[e];if(!i){++e;for(h=0;h<j;++h){k[h]=Fc(a,b,c,d,e,f,g)}}return k}
function x(a,b){var c;c=a.n;if(!b){try{!!c&&c.i&&v(a)}finally{a.n=null}}else{if(c){throw new eg('Cannot set a new parent without first clearing the old parent')}a.n=b;b.i&&a.t()}}
function qb(a){var b=0;var c=a.parentNode;while(c&&c.offsetParent){c.tagName!=Li&&c.tagName!=Mi&&(b-=c.scrollTop);c=c.parentNode}while(a){b+=a.offsetTop;a=a.offsetParent}return b}
function pb(a){var b=0;var c=a.parentNode;while(c&&c.offsetParent){c.tagName!=Li&&c.tagName!=Mi&&(b-=c.scrollLeft);c=c.parentNode}while(a){b+=a.offsetLeft;a=a.offsetParent}return b}
function Mf(a,b){var c;c=Ec(Yc,{20:1},27,4,0);c[0]=new Yf(b.b-~~(a.o/2),b.c);c[1]=new Yf(b.b,b.c-~~(a.n/2));c[2]=new Yf(b.b+~~(a.o/2),b.c);c[3]=new Yf(b.b,b.c+~~(a.n/2));return c}
function Yg(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.I();if(h.H(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.J()}}}return null}
function Ug(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.I();if(j.H(a,h)){var i=g.J();g.K(b);return i}}}else{d=j.b[c]=[]}var g=new Bi(a,b);d.push(g);++j.e;return null}
function Dc(a,b){var c=new Array(b);if(a==3){for(var d=0;d<b;++d){var e=new Object;e.l=e.m=e.h=0;c[d]=e}}else if(a>0){var e=[null,0,false][a];for(var d=0;d<b;++d){c[d]=e}}return c}
function ed(a){return $stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date).getTime(),type:'onModuleLoadStart',className:a})}
function Ye(a,b){var c,d,e;d=$doc.createElement(pj);c=(e=$doc.createElement(mj),e[nj]=a.b.b,e.style[oj]=a.c.b,e);d.appendChild(c);a.e.appendChild(d);w(b);af(a.g,b);c.appendChild(b.o);x(b,a)}
function Yb(b,c){var a,d,e;!c.d||(c.d=false,c.e=null);e=c.e;c.e=b.c;try{ec(b.b,c)}catch(a){a=dd(a);if(Qc(a,6)){d=a;throw new oc(d.b)}else throw a}finally{e==null?(c.d=true,c.e=null):(c.e=e)}}
function _d(b,c){var h;Zd();var a,d,e,f,g;d=null;for(g=b.y();g.B();){f=Oc(g.C(),9);try{c.A(f)}catch(a){a=dd(a);if(Qc(a,7)){e=a;!d&&(d=new vi);h=Tg(d.b,e,d)}else throw a}}if(d){throw new $d(d)}}
function hb(b,c){var a,d,e,f;for(d=0,e=b.length;d<e;++d){f=b[d];try{f[1]?f[0].P()&&(c=gb(c,f)):($wnd.__gwt_initWindowCloseHandler(Ji(qd),Ji(pd)),undefined)}catch(a){a=dd(a);if(!Qc(a,2))throw a}}return c}
function cc(a,b,c){var d;if(!b){throw new kg('Cannot add a handler with a null type')}if(!c){throw new kg('Cannot add a null handler')}a.c>0?bc(a,new qf(a,b,c)):(d=fc(a,b),d.D(c),undefined);return new of}
function wg(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0}
function cf(a,b,c){var d,e;if(c<0||c>a.c){throw new gg}if(a.c==a.b.length){e=Ec(Wc,{20:1},9,a.b.length*2,0);for(d=0;d<a.b.length;++d){Hc(e,d,a.b[d])}a.b=e}++a.c;for(d=a.c-1;d>c;--d){Hc(a.b,d,a.b[d-1])}Hc(a.b,c,b)}
function Vf(a,b,c,d){var e,f,g,h;e=Sf(a,b);f=Mf(a,e);g=Ec(Tc,{20:1},-1,4,1);h=Ec(Tc,{20:1},-1,4,1);g[0]=f[0].b;g[1]=f[1].b;g[2]=f[2].b;g[3]=f[3].b;h[0]=f[0].c;h[1]=f[1].c;h[2]=f[2].c;h[3]=f[3].c;return Uf(g,h,c,d)}
function Pe(a){Le();var b,c;c=Oc(Pg(Je,a),10);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.o==b){return c}}Je.e==0&&md(new Ue);!b?(c=new We):(c=new Me(b));Tg(Je,a,c);ui(Ke,c);return c}
function u(a){var b;if(a.i){throw new eg("Should only call onAttach when the widget is detached from the browser's document")}a.i=true;a.o.__listener=a;b=a.j;a.j=-1;b>0&&(a.j==-1?id(a.o,b|(a.o.__eventBits||0)):(a.j|=b));a.r()}
function nb(a){var b,c,d,e,f;f=a&&a.message?a.message.split('\n'):[];for(b=0,c=0,e=f.length;c<e;++b,c+=2){d=f[c].lastIndexOf('function ');d==-1?(f[b]=Ki,undefined):(f[b]=pg(f[c].substr(d+9,f[c].length-(d+9))),undefined)}f.length=b;return f}
function Cf(a,b,c){var d,e,f;if(!c)return null;if(b.b==c.b||b.b.length<=c.b.length){return null}else{f=a.b.createElement(vj);e=Bf(b,c);d='even';(b.c+b.d)%2!=0&&(d='odd');f.src=a.b.URL.substr(0,a.b.URL.indexOf(wj)-0)+xj+c.b+'/border_'+e+'_'+d+yj;return f}}
function Nf(a){var b;a.p=Fc([bd,Zc],[{20:1},{11:1,20:1}],[11,28],[a.c,a.b],0,2,0);a.e=~~(a.b/2)*a.n+~~(a.n/2);a.d=~~(a.o/2);for(b=0;b<a.q.length;++b){Hc(a.p[a.q[b].c],a.q[b].d,a.q[b])}for(b=0;b<a.q.length;++b){Qf(a,a.q[b])}for(b=0;b<a.q.length;++b){Pf(a,a.q[b])}}
function Bf(a,b){if(a.c+1==b.c&&a.d+1==b.d){return 'E'}if(a.c-1==b.c&&a.d-1==b.d){return 'W'}if(a.c==b.c&&a.d+1==b.d){return 'SE'}if(a.c==b.c&&a.d-1==b.d){return 'NW'}if(a.c-1==b.c&&a.d==b.d){return 'SW'}if(a.c+1==b.c&&a.d==b.d){return 'NE'}if(a.c+1==b.c&&a.d-1==b.d){return 'N'}if(a.c-1==b.c&&a.d+1==b.d){return 'S'}return Ki}
function ec(b,c){var a,d,e,f,g,h,i;if(!c){throw new kg('Cannot fire null event')}try{++b.c;g=gc(b,c.w());d=null;h=b.d?g.O(g.F()):g.N();while(b.d?h.c>0:h.c<h.d.F()){f=b.d?Qh(h):Lh(h);try{c.v(Oc(f,12))}catch(a){a=dd(a);if(Qc(a,7)){e=a;!d&&(d=new vi);i=Tg(d.b,e,d)}else throw a}}if(d){throw new nc(d)}}finally{--b.c;b.c==0&&hc(b)}}
function Jd(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=Ji(qd)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=Ji(function(a){try{kd&&Vb((!ld&&(ld=new yd),ld))}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})}
function cd(){var a;!!$stats&&ed('com.google.gwt.user.client.UserAgentAsserter');a=jd();ng(Si,a)||($wnd.alert('ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (opera) does not match the runtime user.agent value ('+a+'). Expect more errors.\n'),undefined);!!$stats&&ed('gwt.board.demo.client.BoardDemo');sf(new tf)}
function Qf(a,b){var c,d,e;c=Sf(a,b);e=Mf(a,c);if(a.j){a.f.beginPath();a.f.moveTo(e[0].b,e[0].c);a.f.lineTo(e[1].b,e[1].c);a.f.lineTo(e[2].b,e[2].c);a.f.lineTo(e[3].b,e[3].c);a.f.lineTo(e[0].b,e[0].c);a.f.stroke();a.f.closePath()}d=Df(a.k,b);a.f.drawImage(d,e[0].b,e[1].c,d.width,d.height);a.g&&Of(a,b,e[0].b,e[1].c);a.i&&(a.f.strokeText(Ki+b.c+uj+b.d,c.b,c.c),undefined)}
function Of(a,b,c,d){var e,f;e=Ec(Uc,{20:1},0,8,0);e[0]=Cf(a.k,b,Rf(a,b.c-1,b.d-1));e[1]=Cf(a.k,b,Rf(a,b.c,b.d-1));e[2]=Cf(a.k,b,Rf(a,b.c+1,b.d-1));e[3]=Cf(a.k,b,Rf(a,b.c-1,b.d+1));e[4]=Cf(a.k,b,Rf(a,b.c,b.d+1));e[5]=Cf(a.k,b,Rf(a,b.c+1,b.d+1));e[6]=Cf(a.k,b,Rf(a,b.c+1,b.d));e[7]=Cf(a.k,b,Rf(a,b.c-1,b.d));for(f=0;f<e.length;++f){!!e[f]&&(a.f.drawImage(e[f],c,d,e[f].width,e[f].height),undefined)}}
function sf(a){var b,c,d,e,f;a.d=G();if(!a.d){Td((Le(),Pe(null)),new Ge);return}a.d.o[lj]='mainCanvas';a.d.o.style['width']='1020px';a.d.o.width=1020;a.d.o.style['height']='600px';a.d.o.height=600;a.e=a.d.o.getContext(M);a.e.strokeStyle='White';c=new Ff($doc);f=Ec(Xc,{11:1,20:1},26,64,0);e=0;for(b=0;b<8;++b){for(d=0;d<8;++d){f[e]=new If(b,d);++e}}f[10].b='desert';f[25].b=tj;f[38].b=tj;f[39].b=tj;f[43].b=tj;f[44].b=tj;a.c=new Wf(f,a.e,c);Ae(a.b,a.f);Ae(a.b,a.i);Ye(a.g,a.b);Ye(a.g,a.d);Td(Pe('boardDemo'),a.g);s(a.f,new vf(a),(Fb(),Fb(),Eb));s(a.d,new yf(a),Eb)}
function id(a,b){Bd();a.__eventBits=b;a.onclick=b&1?Gd:null;a.ondblclick=b&2?Gd:null;a.onmousedown=b&4?Gd:null;a.onmouseup=b&8?Gd:null;a.onmouseover=b&16?Gd:null;a.onmouseout=b&32?Gd:null;a.onmousemove=b&64?Gd:null;a.onkeydown=b&128?Gd:null;a.onkeypress=b&256?Gd:null;a.onkeyup=b&512?Gd:null;a.onchange=b&1024?Gd:null;a.onfocus=b&2048?Gd:null;a.onblur=b&4096?Gd:null;a.onlosecapture=b&8192?Gd:null;a.onscroll=b&16384?Gd:null;a.onload=b&32768?Hd:null;a.onerror=b&65536?Gd:null;a.onmousewheel=b&131072?Gd:null;a.oncontextmenu=b&262144?Gd:null;a.onpaste=b&524288?Gd:null}
function jd(){var b=navigator.userAgent.toLowerCase();var c=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(function(){return b.indexOf(Si)!=-1}())return Si;if(function(){return b.indexOf('webkit')!=-1}())return 'safari';if(function(){return b.indexOf(Ti)!=-1&&$doc.documentMode>=9}())return 'ie9';if(function(){return b.indexOf(Ti)!=-1&&$doc.documentMode>=8}())return 'ie8';if(function(){var a=/msie ([0-9]+)\.([0-9]+)/.exec(b);if(a&&a.length==3)return c(a)>=6000}())return 'ie6';if(function(){return b.indexOf('gecko')!=-1}())return 'gecko1_8';return 'unknown'}
function Ad(a){switch(a){case 'blur':return 4096;case 'change':return 1024;case Oi:return 1;case Ui:return 2;case 'focus':return 2048;case Vi:return 128;case Wi:return 256;case Xi:return 512;case 'load':return 32768;case 'losecapture':return 8192;case Yi:return 4;case Zi:return 64;case $i:return 32;case _i:return 16;case aj:return 8;case 'scroll':return 16384;case 'error':return 65536;case 'DOMMouseScroll':case bj:return 131072;case 'contextmenu':return 262144;case 'paste':return 524288;case cj:return 1048576;case dj:return 2097152;case ej:return 4194304;case fj:return 8388608;case gj:return 16777216;case hj:return 33554432;case ij:return 67108864;case 'ended':return 134217728;case 'progress':return 268435456;case 'canplaythrough':return 536870912;default:return -1;}}
function Id(){Ed=Ji(function(a){return true});Gd=Ji(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&Cd(b)&&hd(a,c,b)});Hd=Ji(function(a){this.__gwtLastUnhandledEvent=a.type;Gd.call(this,a)});Fd=Ji(function(a){var b=Ed;if(b(a)){var c=Dd;if(c&&c.__listener){if(Cd(c.__listener)){hd(a,c,c.__listener);a.stopPropagation()}}}});$wnd.addEventListener(Oi,Fd,true);$wnd.addEventListener(Ui,Fd,true);$wnd.addEventListener(Yi,Fd,true);$wnd.addEventListener(aj,Fd,true);$wnd.addEventListener(Zi,Fd,true);$wnd.addEventListener(_i,Fd,true);$wnd.addEventListener($i,Fd,true);$wnd.addEventListener(bj,Fd,true);$wnd.addEventListener(Vi,Ed,true);$wnd.addEventListener(Xi,Ed,true);$wnd.addEventListener(Wi,Ed,true);$wnd.addEventListener(cj,Fd,true);$wnd.addEventListener(dj,Fd,true);$wnd.addEventListener(ej,Fd,true);$wnd.addEventListener(fj,Fd,true);$wnd.addEventListener(gj,Fd,true);$wnd.addEventListener(hj,Fd,true);$wnd.addEventListener(ij,Fd,true)}
var Ki='',zj=' ',uj=',',yj='.png',wj='/',rj='0',Aj=':',Ni='CSS1Compat',Mi='TBODY',Li='TR',nj='align',sj='cellPadding',qj='cellSpacing',lj='className',Oi='click',Ui='dblclick',Pi='dir',hj='gesturechange',ij='gestureend',gj='gesturestart',xj='images/tiles/',vj='img',Vi='keydown',Wi='keypress',Xi='keyup',jj='left',Ri='ltr',Yi='mousedown',Zi='mousemove',$i='mouseout',_i='mouseover',aj='mouseup',bj='mousewheel',Ti='msie',Si='opera',tj='plains',Qi='rtl',mj='td',kj='top',fj='touchcancel',ej='touchend',dj='touchmove',cj='touchstart',pj='tr',oj='verticalAlign';var _;_=p.prototype={};_.eQ=function q(a){return this===a};_.hC=function r(){return this.$H||(this.$H=++W)};_.tM=Ii;_.cM={};_=o.prototype=new p;_.cM={25:1};_.o=null;_=n.prototype=new o;_.r=function z(){};_.s=function A(){};_.t=function B(){u(this)};_.u=function C(a){var b;switch(Ad(a.type)){case 16:case 32:b=a.relatedTarget;if(!!b&&this.o.contains(b)){return}}Ab(a,this,this.o)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.i=false;_.j=0;_.k=null;_.n=null;_=m.prototype=new n;_.t=function D(){var a;u(this);a=this.o.tabIndex;-1==a&&(this.o.tabIndex=0,undefined)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=F.prototype=l.prototype=new m;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};var E=null;_=I.prototype=new p;_.cM={};_=J.prototype=H.prototype=new I;_.cM={};var M='2d';_=Q.prototype=new p;_.cM={7:1,20:1};_=P.prototype=new Q;_.cM={7:1,20:1};_=O.prototype=new P;_.cM={2:1,7:1,20:1};_=T.prototype=N.prototype=new O;_.cM={2:1,7:1,20:1};_.b=null;_=U.prototype=new p;_.cM={};var V=0,W=0;_=fb.prototype=ab.prototype=new U;_.cM={};_.b=null;_.c=null;var bb;_=yb.prototype=new p;_.cM={};_.e=null;_=xb.prototype=new yb;_.cM={};_.d=false;_=wb.prototype=new xb;_.w=function Bb(){return Fb(),Eb};_.cM={};_.b=null;_.c=null;var zb=null;_=vb.prototype=new wb;_.cM={};_=ub.prototype=new vb;_.cM={};_=Gb.prototype=tb.prototype=new ub;_.v=function Hb(a){Oc(a,3).x(this)};_.cM={};var Eb;_=Kb.prototype=new p;_.hC=function Mb(){return this.d};_.cM={};_.d=0;var Lb=0;_=Nb.prototype=Jb.prototype=new Kb;_.cM={};_=Ob.prototype=Ib.prototype=new Jb;_.cM={4:1};_.b=null;_.c=null;_=Qb.prototype=Pb.prototype=new p;_.cM={};_.b=null;_=Tb.prototype=Rb.prototype=new xb;_.v=function Ub(a){Oc(a,5);Oe()};_.w=function Wb(){return Sb};_.cM={};var Sb=null;_=Zb.prototype=Xb.prototype=new p;_.cM={18:1};_.b=null;_.c=null;_=ac.prototype=new p;_.cM={};_=_b.prototype=new ac;_.cM={};_.b=null;_.c=0;_.d=false;_=ic.prototype=$b.prototype=new _b;_.cM={};_=kc.prototype=jc.prototype=new p;_.cM={};_=nc.prototype=mc.prototype=new O;_.cM={2:1,6:1,7:1,20:1};_.b=null;_=oc.prototype=lc.prototype=new mc;_.cM={2:1,6:1,7:1,20:1};_=sc.prototype=new p;_.eQ=function tc(a){return this===a};_.hC=function uc(){return this.$H||(this.$H=++W)};_.cM={20:1,21:1,29:1};_.b=0;_=zc.prototype=rc.prototype=new sc;_.cM={20:1,21:1,23:1,29:1};var vc,wc,xc;_=Bc.prototype=Ac.prototype=new p;_.cM={};_.aC=null;_.qI=0;var Ic,Jc;var fd=null,gd=null;var kd=false,ld=null;_=ud.prototype=rd.prototype=new xb;_.v=function vd(a){Sc(a);null.P()};_.w=function wd(){return sd};_.cM={};var sd;_=yd.prototype=xd.prototype=new Xb;_.cM={18:1};var zd=false;var Dd=null,Ed=null,Fd=null,Gd=null,Hd=null;_=Md.prototype=new n;_.r=function Nd(){_d(this,(Zd(),Xd))};_.s=function Od(){_d(this,(Zd(),Yd))};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=Ld.prototype=new Md;_.y=function Rd(){return new kf(this.g)};_.z=function Sd(a){return Qd(this,a)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=Kd.prototype=new Ld;_.z=function Vd(a){var b;b=Qd(this,a);b&&Ud(a.o);return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=$d.prototype=Wd.prototype=new lc;_.cM={2:1,6:1,7:1,20:1};var Xd,Yd;_=be.prototype=ae.prototype=new p;_.A=function ce(a){a.t()};_.cM={};_=ee.prototype=de.prototype=new p;_.A=function fe(a){v(a)};_.cM={};_=he.prototype=new m;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=ie.prototype=ge.prototype=new he;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=je.prototype=new Ld;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.e=null;_.f=null;_=ne.prototype=le.prototype=new p;_.cM={};_.b=null;_.c=null;_.d=null;var oe,pe,qe;_=se.prototype=new p;_.cM={};_=ue.prototype=te.prototype=new se;_.cM={};_.b=null;var ve;_=ye.prototype=xe.prototype=new p;_.cM={};_.b=null;_=Be.prototype=ze.prototype=new je;_.z=function Ce(a){var b,c,d;c=(d=a.o.parentNode,(!d||d.nodeType!=1)&&(d=null),d);b=Qd(this,a);b&&this.c.removeChild(c);return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.c=null;_=Ee.prototype=new n;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.b=null;_=Ge.prototype=Fe.prototype=De.prototype=new Ee;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=Me.prototype=He.prototype=new Kd;_.cM={8:1,9:1,10:1,17:1,18:1,19:1,25:1};var Ie,Je,Ke;_=Re.prototype=Qe.prototype=new p;_.A=function Se(a){a.i&&v(a)};_.cM={};_=Ue.prototype=Te.prototype=new p;_.cM={5:1,12:1};_=We.prototype=Ve.prototype=new He;_.cM={8:1,9:1,10:1,17:1,18:1,19:1,25:1};_=Ze.prototype=Xe.prototype=new je;_.z=function $e(a){var b,c,d;c=(d=a.o.parentNode,(!d||d.nodeType!=1)&&(d=null),d);b=Qd(this,a);b&&this.e.removeChild(ob(c));return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=ff.prototype=_e.prototype=new p;_.y=function gf(){return new kf(this)};_.cM={};_.b=null;_.c=0;_=kf.prototype=hf.prototype=new p;_.B=function lf(){return this.b<this.c.c-1};_.C=function mf(){return jf(this)};_.cM={};_.b=-1;_.c=null;_=of.prototype=nf.prototype=new p;_.cM={};_=qf.prototype=pf.prototype=new p;_.cM={15:1};_.b=null;_.c=null;_.d=null;_=tf.prototype=rf.prototype=new p;_.cM={};_.c=null;_.d=null;_.e=null;_=vf.prototype=uf.prototype=new p;_.x=function wf(a){Nf(this.b.c)};_.cM={3:1,12:1};_.b=null;_=yf.prototype=xf.prototype=new p;_.x=function zf(a){var b,c;c=Tf(this.b.c,Cb(a),Db(a));if(c){b=Ki+c.c+uj+c.d;me(this.b.i.b,' position : '+b)}else{me(this.b.i.b,' position : Out of Board')}};_.cM={3:1,12:1};_.b=null;_=Ff.prototype=Af.prototype=new p;_.cM={};_.b=null;
--></script>
<script><!--
_=If.prototype=Gf.prototype=new p;_.cM={26:1,28:1};_.b=Ki;_.c=0;_.d=0;_=Kf.prototype=Jf.prototype=new p;_.cM={22:1};_=Wf.prototype=Lf.prototype=new p;_.cM={};_.b=0;_.c=0;_.d=0;_.e=0;_.f=null;_.g=false;_.i=false;_.j=false;_.k=null;_.n=0;_.o=0;_.p=null;_.q=null;_=Yf.prototype=Xf.prototype=new p;_.cM={27:1};_.b=0;_.c=0;_=$f.prototype=Zf.prototype=new O;_.cM={2:1,7:1,20:1};_=ag.prototype=_f.prototype=new p;_.cM={};_=cg.prototype=bg.prototype=new O;_.cM={2:1,7:1,20:1};_=eg.prototype=dg.prototype=new O;_.cM={2:1,7:1,20:1};_=hg.prototype=gg.prototype=fg.prototype=new O;_.cM={2:1,7:1,20:1};_=kg.prototype=jg.prototype=ig.prototype=new O;_.cM={2:1,7:1,20:1};_=mg.prototype=lg.prototype=new p;_.cM={20:1,30:1};_=String.prototype;_.eQ=function qg(a){return ng(this,a)};_.hC=function rg(){return xg(this)};_.cM={1:1,20:1,21:1};var sg,tg=0,ug;_=Ag.prototype=zg.prototype=new O;_.cM={2:1,7:1,20:1};_=Bg.prototype=new p;_.D=function Dg(a){throw new Ag('Add not supported on this collection')};_.E=function Eg(a){var b;b=Cg(this.y(),a);return !!b};_.G=function Fg(a){var b,c,d;d=this.F();a.length<d&&(a=Cc(a,d));c=this.y();for(b=0;b<d;++b){Hc(a,b,c.C())}a.length>d&&Hc(a,d,null);return a};_.cM={};_=Hg.prototype=new p;_.eQ=function Jg(a){var b,c,d,e,f;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[13])){return false}e=Oc(a,13);if(this.e!=e.e){return false}for(c=new jh((new eh(e)).b);Kh(c.b);){b=Oc(Lh(c.b),31);d=b.I();f=b.J();if(!(d==null?this.d:d!=null&&d.cM&&!!d.cM[1]?Aj+Oc(d,1) in this.f:Rg(this,d,~~L(d)))){return false}if(!Hi(f,d==null?this.c:d!=null&&d.cM&&!!d.cM[1]?this.f[Aj+Oc(d,1)]:Qg(this,d,~~L(d)))){return false}}return true};_.hC=function Kg(){var a,b,c;c=0;for(b=new jh((new eh(this)).b);Kh(b.b);){a=Oc(Lh(b.b),31);c+=a.hC();c=~~c}return c};_.cM={13:1};_=Gg.prototype=new Hg;_.H=function $g(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)};_.cM={13:1};_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=ah.prototype=new Bg;_.eQ=function bh(a){var b,c,d;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[32])){return false}c=Oc(a,32);if(c.F()!=this.F()){return false}for(b=c.y();b.B();){d=b.C();if(!this.E(d)){return false}}return true};_.hC=function ch(){var a,b,c;a=0;for(b=this.y();b.B();){c=b.C();if(c!=null){a+=L(c);a=~~a}}return a};_.cM={32:1};_=eh.prototype=_g.prototype=new ah;_.E=function fh(a){return dh(this,a)};_.y=function gh(){return new jh(this.b)};_.F=function hh(){return this.b.e};_.cM={32:1};_.b=null;_=jh.prototype=ih.prototype=new p;_.B=function kh(){return Kh(this.b)};_.C=function lh(){return Oc(Lh(this.b),31)};_.cM={};_.b=null;_=nh.prototype=new p;_.eQ=function oh(a){var b;if(a!=null&&a.cM&&!!a.cM[31]){b=Oc(a,31);if(Hi(this.I(),b.I())&&Hi(this.J(),b.J())){return true}}return false};_.hC=function ph(){var a,b;a=0;b=0;this.I()!=null&&(a=L(this.I()));this.J()!=null&&(b=L(this.J()));return a^b};_.cM={31:1};_=qh.prototype=mh.prototype=new nh;_.I=function rh(){return null};_.J=function sh(){return this.b.c};_.K=function th(a){return Vg(this.b,a)};_.cM={31:1};_.b=null;_=vh.prototype=uh.prototype=new nh;_.I=function wh(){return this.b};_.J=function xh(){return this.c.f[Aj+this.b]};_.K=function yh(a){return Wg(this.c,this.b,a)};_.cM={31:1};_.b=null;_.c=null;_=zh.prototype=new Bg;_.D=function Ah(a){this.L(this.F(),a);return true};_.L=function Bh(a,b){throw new Ag('Add not supported on this list')};_.eQ=function Dh(a){var b,c,d,e,f;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[14])){return false}f=Oc(a,14);if(this.F()!=f.F()){return false}d=new Mh(this);e=f.y();while(d.c<d.d.F()){b=Lh(d);c=Lh(e);if(!(b==null?c==null:K(b,c))){return false}}return true};_.hC=function Eh(){var a,b,c;b=1;a=new Mh(this);while(a.c<a.d.F()){c=Lh(a);b=31*b+(c==null?0:L(c));b=~~b}return b};_.y=function Gh(){return new Mh(this)};_.N=function Hh(){return new Rh(this,0)};_.O=function Ih(a){return new Rh(this,a)};_.cM={14:1};_=Mh.prototype=Jh.prototype=new p;_.B=function Nh(){return this.c<this.d.F()};_.C=function Oh(){return Lh(this)};_.cM={};_.c=0;_.d=null;_=Rh.prototype=Ph.prototype=new Jh;_.cM={};_.b=null;_=Th.prototype=Sh.prototype=new ah;_.E=function Uh(a){return Og(this.b,a)};_.y=function Vh(){var a;return a=new jh(this.c.b),new Yh(a)};_.F=function Wh(){return this.c.b.e};_.cM={32:1};_.b=null;_.c=null;_=Yh.prototype=Xh.prototype=new p;_.B=function Zh(){return Kh(this.b.b)};_.C=function $h(){var a;a=Oc(Lh(this.b.b),31);return a.I()};_.cM={};_.b=null;_=ci.prototype=_h.prototype=new zh;_.D=function di(a){return Hc(this.b,this.c++,a),true};_.L=function ei(a,b){(a<0||a>this.c)&&Fh(a,this.c);this.b.splice(a,0,b);++this.c};_.E=function fi(a){return bi(this,a,0)!=-1};_.M=function gi(a){return Ch(a,this.c),this.b[a]};_.F=function hi(){return this.c};_.G=function ii(a){var b,c,d;a.length<this.c&&(a=(c=a,d=Dc(0,this.c),Gc(c.aC,c.cM,c.qI,d),d));for(b=0;b<this.c;++b){Hc(a,b,this.b[b])}a.length>this.c&&Hc(a,this.c,null);return a};_.cM={14:1,20:1};_.c=0;var ji;_=mi.prototype=li.prototype=new zh;_.E=function ni(a){return false};_.M=function oi(a){throw new gg};_.F=function pi(){return 0};_.cM={14:1,20:1};_=si.prototype=qi.prototype=new Gg;_.cM={13:1,20:1};_=vi.prototype=ti.prototype=new ah;_.D=function wi(a){var b;return b=Tg(this.b,a,this),b==null};_.E=function xi(a){return Og(this.b,a)};_.y=function yi(){var a;return a=new jh(Ig(this.b).c.b),new Yh(a)};_.F=function zi(){return this.b.e};_.cM={20:1,32:1};_.b=null;_=Bi.prototype=Ai.prototype=new nh;_.I=function Ci(){return this.b};_.J=function Di(){return this.c};_.K=function Ei(a){var b;b=this.c;this.c=a;return b};_.cM={31:1};_.b=null;_.c=null;_=Gi.prototype=Fi.prototype=new O;_.cM={2:1,7:1,20:1};var Ji=Z;var Tc=new ag,_c=new ag,Vc=new ag,Wc=new ag,ad=new ag,Xc=new ag,Zc=new ag,bd=new ag,Uc=new ag,Yc=new ag,$c=new ag;$stats && $stats({moduleName:'boarddemo',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.boarddemo) $wnd.boarddemo.onScriptLoad();
--></script></body></html>